package com.alex.spring.annotation;/**
 * Created by Administrator on 2018\10\5 0005.
 */

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;

/**
 * @author Administrator
 * @date 2018\10\5 0005
 */
@Configuration
@Import(ConfigA.class)
public class ConfigB {
    @Bean
    public Car a() {
        return new Bar();
    }
}
